package com.chenyongjing.design.pattern.factory.method;

public class Tesla implements Car {
    @Override
    public String getName() {
        return "Tesla";
    }

    @Override
    public void name() {
        System.out.println(getName());
    }
}
